var HTMLURL = "/elmDemo/app/view";
var JSURL =  '/elmDemo/app/js';
var CSSURL = '/elmDemo/app/css';
var JSONURL = '/elmDemo/app/json';

(function () {
    DD.createModule({
        name:'index',
        templateUrl:HTMLURL+'/index.html',
        dataUrl:JSONURL+'/index.json',
        requires:[CSSURL+"/index.css",JSURL+"/index.js"]
    });

    DD.createRoute([
        {
            path:'/index',
            module:'index',
            routes:[
                {
                    path:'/home',
                    module:'home'
                },{
                    path:'/find',
                    module:'find'
                },{
                    path:'/order',
                    module:'order'
                },{
                    path:'/mine',
                    module:'mine'
                }
            ]
        },{
            path:'/MoreActivities',
            module:'MoreActivities'
        },
        {
            path:'/myserver',
            module:'myserver'
        },
        {
            path:'/login',
            module:'Login',
            routes:[
                {
                    path:"/message",
                    module:"Message"
                },
                {
                    path:"/passage",
                    module:"Password"
                }
            ]
        },
        {
            path:'/prod',
            module:'prod'
        },{
            path:'/command',
            module:'command'
        },{
            path:'/creditcard',
            module:'creditcard'
        }
        ]
    );

    DD.createModule({
        name: "app",
        el: "#app",
        root: true,
        data: {
            active: true
        }
    });
}());

